﻿using System;
using Caliburn.Micro;

namespace YiJing.Model
{
    public sealed class Coin : PropertyChangedBase
    {
        private bool _isHeadUp;

        public event EventHandler CoinFlipped = delegate { };

        public bool IsHeadUp
        {
            get { return _isHeadUp; }
            set
            {
                if (IsHeadUp == value) return;

                _isHeadUp = value;
                NotifyOfPropertyChange(() => IsHeadUp);

                CoinFlipped(this, EventArgs.Empty);
            }
        }
    }
}